.class public Lcom/fiberhome/xloc/d/d;
.super Ljava/lang/Object;


# instance fields
.field public a:Ljava/lang/String;

.field public b:Ljava/lang/String;

.field public c:Ljava/lang/String;

.field public d:Ljava/lang/String;

.field public e:Ljava/lang/String;

.field public f:Lcom/fiberhome/xloc/d/c;

.field public g:J

.field public h:I


# direct methods
.method public constructor <init>()V
    .locals 2

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/fiberhome/xloc/d/d;->c:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/fiberhome/xloc/d/d;->d:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/fiberhome/xloc/d/d;->e:Ljava/lang/String;

    new-instance v0, Lcom/fiberhome/xloc/d/c;

    invoke-direct {v0}, Lcom/fiberhome/xloc/d/c;-><init>()V

    iput-object v0, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lcom/fiberhome/xloc/d/d;->g:J

    const/4 v0, 0x0

    iput v0, p0, Lcom/fiberhome/xloc/d/d;->h:I

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/fiberhome/xloc/d/d;->a:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/fiberhome/xloc/d/d;->b:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/fiberhome/xloc/d/d;->c:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/fiberhome/xloc/d/d;->d:Ljava/lang/String;

    const-string/jumbo v0, ""

    iput-object v0, p0, Lcom/fiberhome/xloc/d/d;->e:Ljava/lang/String;

    return-void
.end method

.method public static a(Landroid/content/Context;)Lcom/fiberhome/xloc/d/d;
    .locals 9

    const/4 v1, 0x0

    const/16 v8, 0x2c

    const/4 v3, 0x0

    new-instance v2, Lcom/fiberhome/xloc/d/d;

    invoke-direct {v2}, Lcom/fiberhome/xloc/d/d;-><init>()V

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->c()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p0}, Lcom/fiberhome/gaea/client/d/c;->c(Ljava/lang/String;Landroid/content/Context;)Ljava/io/InputStream;

    move-result-object v0

    if-nez v0, :cond_0

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->b()Ljava/lang/String;

    move-result-object v0

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v5, "\u914d\u7f6e\u83b7\u53d6:SD\u4e0a\u5bfb\u627e\u914d\u7f6e\u6587\u4ef6  configpath ="

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    invoke-static {v0, p0}, Lcom/fiberhome/gaea/client/d/c;->c(Ljava/lang/String;Landroid/content/Context;)Ljava/io/InputStream;

    move-result-object v0

    if-nez v0, :cond_0

    const-string/jumbo v0, "\u914d\u7f6e\u83b7\u53d6:\u83b7\u53d6\u914d\u7f6e\u6587\u4ef6\u5931\u8d25\uff01\uff01"

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    move-object v0, v1

    :goto_0
    return-object v0

    :cond_0
    new-instance v4, Lcom/fiberhome/gaea/client/d/a/a;

    invoke-direct {v4}, Lcom/fiberhome/gaea/client/d/a/a;-><init>()V

    invoke-virtual {v4, v0}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/io/InputStream;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string/jumbo v0, "\u914d\u7f6e\u83b7\u53d6:\u914d\u7f6e\u6587\u4ef6\u8bfb\u6d41\u5931\u8d25\uff01\uff01"

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    move-object v0, v2

    goto :goto_0

    :cond_1
    const-string/jumbo v0, "ip"

    invoke-virtual {v4, v0}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v0

    if-eqz v0, :cond_2

    invoke-virtual {v0}, Lcom/fiberhome/gaea/client/d/a/a;->a()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/fiberhome/xloc/d/d;->a:Ljava/lang/String;

    :cond_2
    const-string/jumbo v0, "port"

    invoke-virtual {v4, v0}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v0

    if-eqz v0, :cond_3

    invoke-virtual {v0}, Lcom/fiberhome/gaea/client/d/a/a;->a()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/fiberhome/xloc/d/d;->b:Ljava/lang/String;

    :cond_3
    const-string/jumbo v0, "taskid"

    invoke-virtual {v4, v0}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v0

    if-eqz v0, :cond_4

    invoke-virtual {v0}, Lcom/fiberhome/gaea/client/d/a/a;->a()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/fiberhome/xloc/d/d;->c:Ljava/lang/String;

    :cond_4
    const-string/jumbo v0, "tenantid"

    invoke-virtual {v4, v0}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v0

    if-eqz v0, :cond_5

    invoke-virtual {v0}, Lcom/fiberhome/gaea/client/d/a/a;->a()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/fiberhome/xloc/d/d;->d:Ljava/lang/String;

    :cond_5
    const-string/jumbo v0, "userid"

    invoke-virtual {v4, v0}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v0

    if-eqz v0, :cond_6

    invoke-virtual {v0}, Lcom/fiberhome/gaea/client/d/a/a;->a()Ljava/lang/String;

    move-result-object v0

    iput-object v0, v2, Lcom/fiberhome/xloc/d/d;->e:Ljava/lang/String;

    :cond_6
    const-string/jumbo v0, "cellidtime"

    invoke-virtual {v4, v0}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v0

    if-eqz v0, :cond_7

    invoke-virtual {v0}, Lcom/fiberhome/gaea/client/d/a/a;->a()Ljava/lang/String;

    move-result-object v0

    const-wide/16 v6, 0x0

    invoke-static {v0, v6, v7}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;J)J

    move-result-wide v6

    iput-wide v6, v2, Lcom/fiberhome/xloc/d/d;->g:J

    :cond_7
    const-string/jumbo v0, "netforce"

    invoke-virtual {v4, v0}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v0

    if-eqz v0, :cond_8

    invoke-virtual {v0}, Lcom/fiberhome/gaea/client/d/a/a;->a()Ljava/lang/String;

    move-result-object v0

    const/4 v5, 0x1

    invoke-static {v0, v5}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;I)I

    move-result v0

    iput v0, v2, Lcom/fiberhome/xloc/d/d;->h:I

    :cond_8
    const-string/jumbo v0, "application"

    invoke-virtual {v4, v0}, Lcom/fiberhome/gaea/client/d/a/a;->d(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/b;

    move-result-object v5

    if-eqz v5, :cond_16

    invoke-virtual {v5}, Lcom/fiberhome/gaea/client/d/a/b;->a()I

    move-result v0

    :goto_1
    if-ge v3, v0, :cond_9

    invoke-virtual {v5, v3}, Lcom/fiberhome/gaea/client/d/a/b;->a(I)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v0

    new-instance v3, Lcom/fiberhome/xloc/d/c;

    invoke-direct {v3}, Lcom/fiberhome/xloc/d/c;-><init>()V

    if-nez v0, :cond_a

    :cond_9
    :goto_2
    move-object v0, v2

    goto/16 :goto_0

    :cond_a
    if-eqz v0, :cond_b

    const-string/jumbo v1, "id"

    invoke-virtual {v0, v1}, Lcom/fiberhome/gaea/client/d/a/a;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v3, Lcom/fiberhome/xloc/d/c;->e:Ljava/lang/String;

    const-string/jumbo v1, "cellidfrequence"

    invoke-virtual {v0, v1}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v1

    :cond_b
    if-eqz v1, :cond_c

    invoke-virtual {v1}, Lcom/fiberhome/gaea/client/d/a/a;->a()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v3, Lcom/fiberhome/xloc/d/c;->f:Ljava/lang/String;

    :cond_c
    const-string/jumbo v1, "loctype"

    invoke-virtual {v4, v1}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v1

    if-eqz v1, :cond_e

    invoke-virtual {v1}, Lcom/fiberhome/gaea/client/d/a/a;->a()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v3, Lcom/fiberhome/xloc/d/c;->g:Ljava/lang/String;

    iget-object v1, v3, Lcom/fiberhome/xloc/d/c;->g:Ljava/lang/String;

    if-eqz v1, :cond_d

    iget-object v1, v3, Lcom/fiberhome/xloc/d/c;->g:Ljava/lang/String;

    invoke-virtual {v1}, Ljava/lang/String;->length()I

    move-result v1

    if-nez v1, :cond_e

    :cond_d
    sget-object v1, Lcom/fiberhome/xloc/d/c;->a:Ljava/lang/String;

    iput-object v1, v3, Lcom/fiberhome/xloc/d/c;->g:Ljava/lang/String;

    :cond_e
    const-string/jumbo v1, "weekfilter"

    invoke-virtual {v0, v1}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v1

    if-eqz v1, :cond_f

    invoke-virtual {v1}, Lcom/fiberhome/gaea/client/d/a/a;->a()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v3, Lcom/fiberhome/xloc/d/c;->h:Ljava/lang/String;

    :cond_f
    const-string/jumbo v1, "timefilter"

    invoke-virtual {v0, v1}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v1

    if-eqz v1, :cond_10

    invoke-virtual {v1}, Lcom/fiberhome/gaea/client/d/a/a;->a()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v3, Lcom/fiberhome/xloc/d/c;->i:Ljava/lang/String;

    :cond_10
    const-string/jumbo v1, "startdate"

    invoke-virtual {v0, v1}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v1

    if-eqz v1, :cond_11

    invoke-virtual {v1}, Lcom/fiberhome/gaea/client/d/a/a;->a()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v3, Lcom/fiberhome/xloc/d/c;->j:Ljava/lang/String;

    :cond_11
    const-string/jumbo v1, "enddate"

    invoke-virtual {v0, v1}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v1

    if-eqz v1, :cond_12

    invoke-virtual {v1}, Lcom/fiberhome/gaea/client/d/a/a;->a()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v3, Lcom/fiberhome/xloc/d/c;->k:Ljava/lang/String;

    :cond_12
    const-string/jumbo v1, "reportid"

    invoke-virtual {v0, v1}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v1

    if-eqz v1, :cond_13

    invoke-virtual {v1}, Lcom/fiberhome/gaea/client/d/a/a;->a()Ljava/lang/String;

    move-result-object v1

    iput-object v1, v3, Lcom/fiberhome/xloc/d/c;->l:Ljava/lang/String;

    :cond_13
    const-string/jumbo v1, "workdaylist"

    invoke-virtual {v0, v1}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v1

    if-eqz v1, :cond_14

    invoke-virtual {v1}, Lcom/fiberhome/gaea/client/d/a/a;->a()Ljava/lang/String;

    move-result-object v1

    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    iput-object v4, v3, Lcom/fiberhome/xloc/d/c;->n:Ljava/util/ArrayList;

    iget-object v4, v3, Lcom/fiberhome/xloc/d/c;->n:Ljava/util/ArrayList;

    invoke-static {v1, v8, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;CLjava/util/ArrayList;)V

    :cond_14
    const-string/jumbo v1, "holidaylist"

    invoke-virtual {v0, v1}, Lcom/fiberhome/gaea/client/d/a/a;->a(Ljava/lang/String;)Lcom/fiberhome/gaea/client/d/a/a;

    move-result-object v0

    if-eqz v0, :cond_15

    invoke-virtual {v0}, Lcom/fiberhome/gaea/client/d/a/a;->a()Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    iput-object v1, v3, Lcom/fiberhome/xloc/d/c;->o:Ljava/util/ArrayList;

    iget-object v1, v3, Lcom/fiberhome/xloc/d/c;->o:Ljava/util/ArrayList;

    invoke-static {v0, v8, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;CLjava/util/ArrayList;)V

    :cond_15
    iput-object v3, v2, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    goto/16 :goto_2

    :cond_16
    move v0, v3

    goto/16 :goto_1
.end method


# virtual methods
.method public a(Lcom/fiberhome/xloc/d/c;)V
    .locals 2

    if-nez p1, :cond_0

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v1, p1, Lcom/fiberhome/xloc/d/c;->e:Ljava/lang/String;

    iput-object v1, v0, Lcom/fiberhome/xloc/d/c;->e:Ljava/lang/String;

    iget-object v0, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v1, p1, Lcom/fiberhome/xloc/d/c;->f:Ljava/lang/String;

    iput-object v1, v0, Lcom/fiberhome/xloc/d/c;->f:Ljava/lang/String;

    iget-object v0, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v1, p1, Lcom/fiberhome/xloc/d/c;->g:Ljava/lang/String;

    iput-object v1, v0, Lcom/fiberhome/xloc/d/c;->g:Ljava/lang/String;

    iget-object v0, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v1, p1, Lcom/fiberhome/xloc/d/c;->h:Ljava/lang/String;

    iput-object v1, v0, Lcom/fiberhome/xloc/d/c;->h:Ljava/lang/String;

    iget-object v0, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v1, p1, Lcom/fiberhome/xloc/d/c;->i:Ljava/lang/String;

    iput-object v1, v0, Lcom/fiberhome/xloc/d/c;->i:Ljava/lang/String;

    iget-object v0, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v1, p1, Lcom/fiberhome/xloc/d/c;->j:Ljava/lang/String;

    iput-object v1, v0, Lcom/fiberhome/xloc/d/c;->j:Ljava/lang/String;

    iget-object v0, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v1, p1, Lcom/fiberhome/xloc/d/c;->k:Ljava/lang/String;

    iput-object v1, v0, Lcom/fiberhome/xloc/d/c;->k:Ljava/lang/String;

    iget-object v0, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v1, p1, Lcom/fiberhome/xloc/d/c;->l:Ljava/lang/String;

    iput-object v1, v0, Lcom/fiberhome/xloc/d/c;->l:Ljava/lang/String;

    iget-object v0, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v1, p1, Lcom/fiberhome/xloc/d/c;->m:Ljava/lang/String;

    iput-object v1, v0, Lcom/fiberhome/xloc/d/c;->m:Ljava/lang/String;

    iget-object v0, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v1, p1, Lcom/fiberhome/xloc/d/c;->o:Ljava/util/ArrayList;

    iput-object v1, v0, Lcom/fiberhome/xloc/d/c;->o:Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v1, p1, Lcom/fiberhome/xloc/d/c;->n:Ljava/util/ArrayList;

    iput-object v1, v0, Lcom/fiberhome/xloc/d/c;->n:Ljava/util/ArrayList;

    goto :goto_0
.end method

.method public a()Z
    .locals 10

    const/4 v2, 0x1

    const/4 v3, 0x0

    new-instance v6, Ljava/lang/StringBuffer;

    invoke-direct {v6}, Ljava/lang/StringBuffer;-><init>()V

    const-string/jumbo v0, "<?xml version=\"1.0\"  encoding=\"UTF-8\" ?>\r\n"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, "<xlocconfig>\r\n"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, "<ip>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-object v1, p0, Lcom/fiberhome/xloc/d/d;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v1, "</ip>\r\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, "<port>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-object v1, p0, Lcom/fiberhome/xloc/d/d;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v1, "</port>\r\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, "<taskid>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-object v1, p0, Lcom/fiberhome/xloc/d/d;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v1, "</taskid>\r\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, "<userid>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-object v1, p0, Lcom/fiberhome/xloc/d/d;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v1, "</userid>\r\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, "<tenantid>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-object v1, p0, Lcom/fiberhome/xloc/d/d;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v1, "</tenantid>\r\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, "<cellidtime>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-wide v4, p0, Lcom/fiberhome/xloc/d/d;->g:J

    invoke-virtual {v0, v4, v5}, Ljava/lang/StringBuffer;->append(J)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v1, "</cellidtime>\r\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, "<netforce>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget v1, p0, Lcom/fiberhome/xloc/d/d;->h:I

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v1, "</netforce>\r\n"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    iget-object v0, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    if-eqz v0, :cond_7

    move v1, v2

    :goto_0
    move v5, v3

    :goto_1
    if-ge v5, v1, :cond_4

    iget-object v7, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    const-string/jumbo v0, "<application"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v4, " id=\""

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-object v4, v7, Lcom/fiberhome/xloc/d/c;->e:Ljava/lang/String;

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v4, "\">\r\n"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, "<cellidfrequence>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-object v4, v7, Lcom/fiberhome/xloc/d/c;->f:Ljava/lang/String;

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v4, "</cellidfrequence>\r\n"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, "<loctype>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-object v4, v7, Lcom/fiberhome/xloc/d/c;->g:Ljava/lang/String;

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v4, "</loctype>\r\n"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, "<weekfilter>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-object v4, v7, Lcom/fiberhome/xloc/d/c;->h:Ljava/lang/String;

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v4, "</weekfilter>\r\n"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, "<timefilter>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-object v4, v7, Lcom/fiberhome/xloc/d/c;->i:Ljava/lang/String;

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v4, "</timefilter>\r\n"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, "<startdate>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-object v4, v7, Lcom/fiberhome/xloc/d/c;->j:Ljava/lang/String;

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v4, "</startdate>\r\n"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, "<enddate>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-object v4, v7, Lcom/fiberhome/xloc/d/c;->k:Ljava/lang/String;

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v4, "</enddate>\r\n"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, "<reportid>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-object v4, v7, Lcom/fiberhome/xloc/d/c;->l:Ljava/lang/String;

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v4, "</reportid>\r\n"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v8, Ljava/lang/StringBuffer;

    const-string/jumbo v0, ""

    invoke-direct {v8, v0}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V

    move v4, v3

    :goto_2
    iget-object v0, v7, Lcom/fiberhome/xloc/d/c;->n:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v4, v0, :cond_0

    iget-object v0, v7, Lcom/fiberhome/xloc/d/c;->n:Ljava/util/ArrayList;

    invoke-virtual {v0, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v8, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, ","

    invoke-virtual {v8, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v0, v4, 0x1

    move v4, v0

    goto :goto_2

    :cond_0
    const-string/jumbo v0, "<workdaylist>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v8}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v9, ","

    invoke-virtual {v0, v9}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-virtual {v8}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v8}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/String;->length()I

    move-result v8

    add-int/lit8 v8, v8, -0x1

    invoke-virtual {v0, v3, v8}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    :goto_3
    invoke-virtual {v4, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v4, "</workdaylist>\r\n"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    new-instance v8, Ljava/lang/StringBuffer;

    const-string/jumbo v0, ""

    invoke-direct {v8, v0}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V

    move v4, v3

    :goto_4
    iget-object v0, v7, Lcom/fiberhome/xloc/d/c;->o:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v4, v0, :cond_2

    iget-object v0, v7, Lcom/fiberhome/xloc/d/c;->o:Ljava/util/ArrayList;

    invoke-virtual {v0, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v8, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, ","

    invoke-virtual {v8, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v0, v4, 0x1

    move v4, v0

    goto :goto_4

    :cond_1
    invoke-virtual {v8}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_3

    :cond_2
    const-string/jumbo v0, "<holidaylist>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v8}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v7, ","

    invoke-virtual {v0, v7}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    invoke-virtual {v8}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v8}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v7}, Ljava/lang/String;->length()I

    move-result v7

    add-int/lit8 v7, v7, -0x1

    invoke-virtual {v0, v3, v7}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    :goto_5
    invoke-virtual {v4, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string/jumbo v4, "</holidaylist>\r\n"

    invoke-virtual {v0, v4}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    const-string/jumbo v0, "</application>\r\n"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    add-int/lit8 v0, v5, 0x1

    move v5, v0

    goto/16 :goto_1

    :cond_3
    invoke-virtual {v8}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_5

    :cond_4
    const-string/jumbo v0, "</xlocconfig>"

    invoke-virtual {v6, v0}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    invoke-static {}, Lcom/fiberhome/xloc/d/b;->c()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v6}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/fiberhome/gaea/client/d/c;->c(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0

    if-eq v0, v2, :cond_5

    const-string/jumbo v0, "failed to write loc config file to phone!"

    invoke-static {v0}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    :cond_5
    invoke-static {}, Lcom/fiberhome/xloc/d/b;->b()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v6}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/fiberhome/gaea/client/d/c;->c(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0

    if-eq v0, v2, :cond_6

    const-string/jumbo v1, "failed to write loc config file!"

    invoke-static {v1}, Lcom/fiberhome/xloc/c/a;->a(Ljava/lang/String;)V

    :cond_6
    return v0

    :cond_7
    move v1, v3

    goto/16 :goto_0
.end method

.method public b()Ljava/lang/String;
    .locals 2

    iget-object v0, p0, Lcom/fiberhome/xloc/d/d;->d:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/fiberhome/xloc/d/d;->e:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/fiberhome/xloc/d/d;->c:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    :goto_0
    return-object v0

    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/fiberhome/xloc/d/b;->f:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "|"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    sget-object v1, Lcom/fiberhome/xloc/d/b;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "|"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/fiberhome/xloc/d/d;->d:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "|"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/fiberhome/xloc/d/d;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, "|"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/fiberhome/xloc/d/d;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/k;->d(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public toString()Ljava/lang/String;
    .locals 3

    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    iget-object v1, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    if-eqz v1, :cond_0

    iget-object v1, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v1, v1, Lcom/fiberhome/xloc/d/c;->f:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string/jumbo v2, "/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    iget-object v2, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v2, v2, Lcom/fiberhome/xloc/d/c;->h:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string/jumbo v2, "/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    iget-object v2, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v2, v2, Lcom/fiberhome/xloc/d/c;->i:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string/jumbo v2, "/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    iget-object v2, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v2, v2, Lcom/fiberhome/xloc/d/c;->j:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string/jumbo v2, "/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    iget-object v2, p0, Lcom/fiberhome/xloc/d/d;->f:Lcom/fiberhome/xloc/d/c;

    iget-object v2, v2, Lcom/fiberhome/xloc/d/c;->k:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    const-string/jumbo v2, "  "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    :cond_0
    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
